package com.xiaochong.tir.common.data.mapper;

import com.xiaochong.tir.common.data.mapper.base.BaseDao;
import com.xiaochong.tir.common.data.po.ExchangeInfo;
import com.xiaochong.tir.common.data.po.SyArea;
import com.xiaochong.tir.common.data.vo.ExchangeInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 此类为[基础代码]自动生成，继承了BaseDao类，已经拥有基本的增删改成操作
 * <其他请自行扩展>
 * @author cx
 * @time 2018-04-26 09:56
 */
public interface ExchangeInfoMapper extends BaseDao<ExchangeInfo,Integer> {

    /**
     * 首页交易所指数前8条
     * @param T t
     * @return List<T>
     */
    public List<ExchangeInfo> selectByEntityTop(ExchangeInfo exchangeInfo);

    List<SyArea> getCountryName();

    List<SyArea> getCity(@Param("id")Integer id);

    List<SyArea> getDistrict(@Param("id")Integer id);

    SyArea getCounName(@Param("id")int district);
    
    List<ExchangeInfo> findList(ExchangeInfo exchangeInfo);

    List<ExchangeInfo> selectByEntityList2(ExchangeInfo exchangeInfo);

    List<ExchangeInfo> getExchangeInfo();

    List<ExchangeInfoVo> selectExchangeList(ExchangeInfoVo entity);

    List<ExchangeInfo> exchangeInfoUniqueness(ExchangeInfo entity);

    List<ExchangeInfo> getCurrencySea(ExchangeInfo entity);
}